import { zrRequest } from "./index"

export function queryVehicle() {
  return zrRequest.get({
    url: "detect/vehicle/listByPerm"
  })
}

export function queryVehicleDetail(id) {
  return zrRequest.get({
    url: `detect/vehicle/${id}`
  })
}

export function addVehicle(data) {
  return zrRequest.post({
    url: "detect/vehicle",
    data
  })
}

export function editVehicle(data) {
  return zrRequest.put({
    url: "detect/vehicle",
    data
  })
}

export function deleteVehicle(id) {
  return zrRequest.delete({
    url: `detect/vehicle/${id}`
  })
}


